package com.kt.app.ui.components


import android.widget.Toast
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Person
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.OutlinedButton
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.tooling.preview.Preview

@Composable
fun PlusButton() {
    val ctx = LocalContext.current

//    Button(onClick = { /*TODO*/
//        Toast.makeText(ctx, "Clicked", Toast.LENGTH_SHORT).show()
//    }, colors = ButtonDefaults.buttonColors(
//        containerColor = androidx.compose.ui.graphics.Color.Red,
//        contentColor = androidx.compose.ui.graphics.Color.White,
//        disabledContainerColor = androidx.compose.ui.graphics.Color.Gray,
//    )
//    ) {
//        Text(text = "Plus")
//    }
//    TextButton(onClick = {
//        Toast.makeText(ctx, "Clicked", Toast.LENGTH_SHORT).show()
//    }) {
//        Text(text = "Plus")
//        Text(text = "Plus")
//    }
//    OutlinedButton(onClick = {
//        Toast.makeText(ctx, "Clicked", Toast.LENGTH_SHORT).show()
//    }) {
//        Text(text = "Plus")
//    }
    IconButton(onClick = {
        Toast.makeText(ctx, "Clicked", Toast.LENGTH_SHORT).show()
    }) {

        Icon(imageVector = Icons.Filled.Person,  contentDescription = "Person", tint = Color.Red)
        Text(text = "Plus")
    }


}

@Preview
@Composable
fun PlusButtonPreview() {
    PlusButton()
}

